<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html lang="zh-CN">
  
  <head>
    
    <%@ include file="/WEB-INF/include/meta.jsp"%>
    <%@ include file="/WEB-INF/include/css.jsp"%>
    
  </head>
  <!-- end header -->
  <body>
    <div class="page-group">
      <div class="page page-current">
        <header class="bar bar-nav shop-header">
          <h1 class="title">支付等待</h1>
        </header>
        <div class="content" style="margin: 2.7rem 0; padding: 0 1rem;">
          <p class="text-center">正在等待支付结果</p>
          <p class="text-center timer">5秒后自动跳转到结果页....</p>
          <a class="pull-right" style="margin-top: .3rem;" href="${ctx.host}/orders/${orderId}/complete">已完成支付</a>
        </div>
        <!-- End Content -->
        
      </div>
    </div>
    
    <%@ include file="/WEB-INF/include/script.jsp"%>
    <d:resource type="script" root="${ctx.resource}/build" src="js/page/trading/ali-return.js" />
    <script type="text/javascript">
      require(['page/trading/ali-return'], function(page) {
        page.init({
          orderId: '${orderId}'
        })
      })
    </script>
  </body>
</html>